<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<meta name="decorator" content="moduleList" />
 <script type="text/javascript" src="${staticPath}/lib/jquery-autocomplete/1.1/jquery.autocomplete.min.js"></script>
 <link rel="stylesheet" href="${staticPath}/lib/jquery-autocomplete/1.1/jquery.autocomplete.css" />
	<script type="text/javascript">
		$(document).ready(function() { 
			//自动补全
			 var options={
					 width: 200,
					 highlight: false,
					 multiple: false,
					 scroll: true,
					 max:10,
					 scrollHeight: 300
				};
			 $("#brandCname").autocomplete("${contextPath}/biz/brand/brand/autocompleteBrandName?name=cn",options );
			// $("#brandEname").autocomplete("${contextPath}/biz/brand/brand/autocompleteBrandName?name=en",options );
		
			
		});
	</script>
</head>
<body>
<form:form name="listForm" action="" modelAttribute="brand" method="post" class="form-inline" role="form">
 	<input type="hidden" name="deleteIds" >
    	<div class="o-l-search-builder f_1">
	         <div class="f_8">
	              <div class="f_2">
	                  <div class="col-sm-8 f_6">
	                        <form:input id="brandCname" path="brandCname"class="f_5" autocomplete="off" placeholder="品牌中文名"/>
	                  </div>
	                  <button type="submit" class="btn btn-warning btn_1">查&nbsp;询</button>
	             </div>
	         </div>
	         <div class="o-l-chevron-down"><a href="#" class="btn btn-default" data-toggle="collapse" data-target="#statement-search-builder" id="chevronDownBtn" role="button"><span id="glyphiconspan" class="glyphicon glyphicon-chevron-up"></span></a>
	         </div>
	     </div>
	     <div class="o-l-search-builder f_1">
              <button type="button" class="btn btn-danger btn_3 btn_right" onclick="Oosp_DelAll('${contextPath}/biz/brand/brand/deleteAll','table1')">删&nbsp;除</button>
              <button type="button" class="btn btn-info btn_3 btn_right" onclick="window.open('${contextPath}/biz/brand/brand/add','_self')">新&nbsp;建</button>
        </div>
		<tags:message content="${message}"/>
		<div class="o-l-search-builder f_9">
		<table class="table table-striped table-hover o-l-table table-bordered" id="table1">
			<thead class="t_1">
				<tr>
					<th style="width: 1px"><input type="checkbox" data-ckb="all"></th>
					<th>中文名</th>
					<th>英文名</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${page.list}" var="item">
					<tr  data-herf="${contextPath}/biz/brand/brand/${item.id}/view" data-target="_self">
						<td class="o-l-tab-ckb">
							<input type="checkbox" data-ckb-id="${item.id}">
						</td>
						<td>${item.brandCname}</td>
						<td>${item.brandEname}</td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
		</div>
		<pager:pager pageSize="${page.pageSize}" pageNo="${page.pageNo}" url="" total="${page.total}"/>
	<script type="text/javascript" src="${staticPath}/js/list.js"></script>
</form:form>
</body>
</html>